import axios from '@/utils/request'

/**
 * 添加单位
 */
export function addOrgSubsidiaryInfo(data) {
  return axios({
    url: '/v1/orgSubsidiaryInfo/add',
    method: 'post',
    data
  })
}
/**
 * 工程专业查询
 */
export function queryMajor(data) {
  return axios({
    url: '/v1/codeDict/queryMajor',
    method: 'get',
    params: data
  })
}

/**
* 获取单位名称
*/
export function getName(data) {
  return axios({
    url: "/v1/wechat/org/getName",
    method: "get",
    params: data
  })
}
/**
* 查询单位
*/
export function getOrgSubsidiaryInfo(data) {
  return axios({
    url: '/v1/orgSubsidiaryInfo/get',
    method: 'get',
    params: data
  })
}
/**
* 更新单位
*/
export function updateOrgSubsidiaryInfo(data) {
  return axios({
    url: '/v1/orgSubsidiaryInfo/update',
    method: 'post',
    data
  })
}

/**
* 删除单位
*/
export function deleteOrgSubsidiaryInfo(data) {
  return axios({
    url: '/v1/orgSubsidiaryInfo/delete',
    method: 'get',
    params: data
  })
}
/**
 * 删除合同信息
 */
export function deleteContract(data) {
  return axios({
    url: '/v1/orgSubsidiaryInfo/deleteContract',
    method: 'get',
    params: data
  })
}
/**
 * 删除支付专户信息
 */
export function deleteAccountVoucher(data) {
  return axios({
    url: '/v1/orgSubsidiaryInfo/deleteAccountVoucher',
    method: 'get',
    params: data
  })
}

/**
 *查询管理人员信息
 */
export function queryManager(data) {
  return axios({
    url: '/v1/orgPerson/queryManager',
    method: 'get',
    params: data
  })
} 
